package com.deep.deepenterpise.common.enums;

import lombok.Getter;

/**
 * @author xyz
 * @version 1.0
 * @title DrStateEnum
 * @description
 * @create 2024/5/20 16:18
 */
@Getter
public enum DrPayTypeEnum {
    WX("wx"),
    ZFB("zfb"),
    XJ("xj"),
    YE("ye"),
    SM("sm"),
    NONE("none");

    private final String drType;

    DrPayTypeEnum(String drType) {
        this.drType = drType;
    }


    public boolean compare(String drType) {
        return this.drType.equals(drType);
    }

    public boolean compare(DrPayTypeEnum drPayTypeEnum) {
        return this.compare(drPayTypeEnum.getDrType());
    }
}
